package qdu.my.ch1_intent_path;

import qdu.my.ch1_intent_path.util.ExtractURIinfo;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.widget.TextView;
public class Nopath extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.onpath);
		Uri uridata = getIntent().getData();
		ExtractURIinfo.getURIdata(uridata, ((TextView)findViewById(R.id.tv_showinfo)));
		
		String path = uridata.getPath();
		if("/class1".equals(path)){
			startActivity(getIntent().setClass(this, No1act.class));
			finish();
		}
	}

}
